home *** CD-ROM | disk | FTP | other *** search
/ 9-Digit Zip Code Directory / 9-Digit Zip Code Directory (American Business Information) (ABIZIP-12).ISO / z4src.zip / BSERROR.H < prev    next >
Text File  |  1993-08-24  |  3KB  |  88 lines

  1. //----------------------------------------------------------------------------
  2. //                            MODULE DESCRIPTION
  3. //
  4. //  Module:    bserror.h
  5. //   Title:    Base library
  6. //  Notice:    John M. Weeder
  7. //                 Copyright (c) 1993. All rights reserved.
  8. //             This module contains proprietary information and should be 
  9. //                treated as confidential.
  10. //
  11. //----------------------------------------------------------------------------
  12. //                           MAINTENANCE HISTORY
  13. //
  14. // $Workfile$
  15. // $Revision$
  16. //   $Author$
  17. //     $Date$
  18. //      $Log$    
  19. //
  20. //----------------------------------------------------------------------------
  21. //                             MODULE NARRATIVE
  22. //
  23. //
  24. //    This module contains constants for error numbers.
  25. //
  26. //    The code in this module should be written entirely in C. 
  27. //    Do not use any C++ constructs.
  28. //
  29. //    This module is portable to:
  30. //        DOS 3.X+
  31. //        MS Windows 3.X+
  32. //        OS/2 2.X+
  33. //        OS/2 2.0 PM
  34. //        SCO UNIX.
  35. //
  36. //    The following compilers are supported:
  37. //        MSC 6.0A
  38. //        MSC/C++ 7.0
  39. //        Borland C++ 3.1 for DOS
  40. //        Borland C++ 1.0 for OS/2 2.X
  41. //        SCO UNIX cc
  42. //
  43. //----------------------------------------------------------------------------
  44.  
  45. //----------------------------------------------------------------------------
  46. //    Errors
  47. //----------------------------------------------------------------------------
  48. enum ERROR_CODE
  49.     {
  50.     ERR_SUCCESS = 0,                            // Success code
  51.     ERR_ERROR = 1,                                // Generic error
  52.  
  53.     //
  54.     //    Library error codes should follow this. Assign each new application
  55.     //    a base error code. Space base error codes by at least 0x0100 
  56.     //    (ie 0x1000, 0x1100, 0x1200).
  57.     //
  58.     ERR_LIBRARY_BASE = 0x1000,
  59.         ERR_BASE_LIBRARY_BASE = 0x1000,    // Base library (example)
  60.  
  61.     //
  62.     //    Application error codes should follow this. Assign each new application
  63.     //    a base error code. Space base error codes by at least 0x0100 
  64.     //    (ie 0x4000, 0x4100, 0x4200).
  65.     //
  66.     ERR_APPLICATION_BASE = 0x4000,
  67.     };
  68.  
  69. //----------------------------------------------------------------------------
  70. //    Log
  71. //----------------------------------------------------------------------------
  72. enum LOG_CODE
  73.     {
  74.     LOG_ALWAYS         = 0,
  75.     LOG_VERY_HIGH    = 1,
  76.     LOG_HIGH            = 50,
  77.     LOG_MEDIUM         = 150,
  78.     LOG_LOW             = 250,
  79.     LOG_MONITOR     = 1000,                    // Special
  80.         LOG_HEAP,
  81.         LOG_VOX,
  82.         LOG_VOX_SHAVE,
  83.     };
  84.  
  85. //----------------------------------------------------------------------------
  86. //------------------------------- End of File --------------------------------
  87. //----------------------------------------------------------------------------
  88.